package cqie.personal.frame.service;

import cqie.personal.frame.bo.AddModifyCharacterBO;
import cqie.personal.frame.bo.GetCharacterBO;
import cqie.personal.frame.entity.CharacterInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import cqie.personal.frame.exception.DataBaseUpdateException;
import cqie.personal.frame.exception.ValidationFailException;
import cqie.personal.frame.vo.CharacterView;
import cqie.personal.frame.vo.PageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yeeeeee
 * @since 2021-09-08
 */
@Mapper
public interface CharacterInfoService extends IService<CharacterInfo> {

    boolean addCharacter(AddModifyCharacterBO addModifyCharacterBO) throws ValidationFailException, DataBaseUpdateException;

    boolean modifyCharacter(AddModifyCharacterBO addModifyCharacterBO) throws ValidationFailException, DataBaseUpdateException;

    PageVO<List<CharacterView>> getCharacter(GetCharacterBO getCharacterBO) throws ValidationFailException;
}
